:root {
    --level-1: #8dccad;
    --level-2: #f5cc7f;
    --level-3: #7b9fe0;
    --level-4: #f27c8d;
    --black: black;
  }
  
  * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  ol {
    list-style: none;
  }

  .popover-body,
  .popover{
    white-space: pre-line;
    text-align: justify;
    text-justify: inter-word;
    font-size: 13px;
    max-width: 500px;
  }


  /* .tp-fullscreen {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
  }
  
  .tp-fullscreen .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: 13px;
    right: 110%;
  }
  
  .tp-fullscreen .tooltiptext::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent black;
  }
  .tp-fullscreen:hover .tooltiptext {
    visibility: visible;
  } */

  .section-horizontal {
  padding-left: 150px;
  }

  .division-padding {
    padding-left: 9px;
    padding-right: 9px;
  }
  

  .direccion {
    height: 90px;
    width: 80%;
  }

  .department {
    height: 80px;
    width: 80%;
  }

  .division {
    height: 70px;
  }

  .seccion {
    height: 65px;
  }
  
  .direction-font {
    margin: 2%;
    font-size: 12px;
  }

  .Popover-title-font{
    font-size: 16px;
    text-align: center;
  }

  .departament-font {
    margin: 2%;
    font-size: 10px;
  }

  .division-font {
    margin: 2%;
    font-size: 9px;
  }

  .section-font {
    margin: 0;
    font-size: 8px;
  }
  
  .level-4-wrapper > li > button > p {
    margin: 15%;
  }

  body {
    margin: 50px 0 100px;
    text-align: center;
    font-family: "Inter", sans-serif;
    display: flex;
    justify-content: center;
  }
  
  .Organigrama {
    /* max-width: 1000px; */
    padding: 0;
    margin-right: 0;
    position: relative;
  }

  .rectangle,
  .oval,
  .oval-upper,
  .oval-bottom {
    position: relative;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    width: 20px;
  }

  .oval {
    border-radius: 50px;
    height: 80%;
    margin-top: 12px;
  }

  .oval-upper {
    border-radius: 100px 100px 0px 0px;
    height: 40%;
  }

  .oval-bottom {
    border-radius: 0px 0px 100px 100px;
    height: 40%;
  }


  .btn-outline-dark{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* .btn-flotante {
    font-size: 16px; Cambiar el tamaño de la tipografia
    text-transform: uppercase; Texto en mayusculas
    font-weight: bold; Fuente en negrita o bold
    color: transparent; Color del texto
    border-radius: 5px; Borde del boton
    letter-spacing: 2px; Espacio entre letras */

    /* background-color: #E91E63;  Color de fondo */
    
    /* padding: 13px 13px;
    position: fixed;
    bottom: 40px;
    right: 40px;
    transition: all 300ms ease 0ms;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
  } */

  /* .btn-flotante:hover {
    background-color: #3d64ff; Color de fondo al pasar el cursor
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-7px);
  } */
  /* @media only screen and (max-width: 600px) {
     .btn-flotante {
      font-size: 14px;
      padding: 12px 20px;
      bottom: 20px;
      right: 20px;
    }
  }  */
  
  /* LEVEL-1 STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .level-1 {
    width: 30%;
    margin: 0 auto 40px;
  }
  
  .level-2::after,
  .level-21::after,
  .level-1::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 16.6%;
    width: 60%;
    height: 2px;
    background: var(--black);
    padding: 1px;
  }

  .level-1::before {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: var(--black);
  }
  
  /* LEVEL-2 STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .level-1-wrapper,
  .level-2-wrapper,
  .level-21-wrapper,
  .level-23-wrapper,
  .level-25-wrapper {
    position: relative;
    display: grid;
    /* width: 970px; */
    grid-template-columns: 18% 7% 25% 7% 18%;
    margin: 0px 0px 0px;
    padding: 0px 0px 0px 1px;
    max-width: 1100px;
    min-width: 900px;
    max-height: 885px;
  }

  .level-1-wrapper {
    padding-bottom: 80px;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    padding-left: 20.1%;
    padding-right: 20%;
    /* padding-left: 260px;
    padding-right: 535px; */
    /* left: 538.5px; */
  }

  .level-1-wrapper > :nth-child(3) > :first-child > :first-child {
    height: 100%;
  }

  .level-1-wrapper > :first-child > :first-child,
  .level-1-wrapper > :last-child > ol > :first-child > ol > :last-child > :first-child {
    margin-top: 12px;
    display: grid;
  }

  .level-1-wrapper > :first-child :first-child > div,
  .level-1-wrapper > :last-child > ol > :first-child > ol > :last-child > :first-child > div { 
    width: 100%;
    top: -2px;
    left: 0%;
  }

  .level-2-wrapper{
    grid-template-columns: 15% 34% 2% 0% 49%;
    /* left: 175x;
    max-width: 900px; */
  }

  .level-21-wrapper {
    grid-template-columns: 49% 2% 49%;
    /* left: 142.2px;
    max-width: 930px; */
  }

  .level-21-wrapper > :last-child > ol::before {
    width: 51.7%;
    left: 24.2%;
  }

  .level-21-wrapper > :first-child > :nth-child(2)::before {
    width: 53.4%;
    left: 23.3%;
  }

  .level-21-wrapper > :first-child > :last-child::before {
    width: 52%;
    left: 24%;
  }

  .level-23-wrapper {
    grid-template-columns: 49% 2% 24.5% 24.5%;
    /* column-gap: 1%; */
    /* left: 45px; */
  }
  .level-25-wrapper {
    grid-template-columns: 11% 11% 21% 11% 42%;
    column-gap: 1%;
    padding-left: 23.76%;
    /* left: 320px; */
    /* max-width: 650px; */
  }

  .level-2-wrapper::before,
  .level-21-wrapper::before,
  .level-23-wrapper::before,
  .level-25-wrapper::before {
    content: "";
    position: absolute;
    top: -22px;
    left: calc(6% + 15px);
    width: calc(67% + 12px);
    height: 2px;
    background: var(--black);
  }

  .level-21-wrapper::before {
    left: calc(23% + 15px);
    width: calc(50% + 12px);
  }

  .level-23-wrapper::before {
    left: calc(24% + 5px);
    width: calc(62% + 14px);
  }

  .level-25-wrapper::before {
    left: calc(27% + 9px);
    width: calc(55% + 12px);
  }

  .level-2-wrapper::after,
  .level-21-wrapper::after, 
  .level-22-wrapper::after,
  .level-23-wrapper::after,
  .level-25-wrapper::after {
    display: none;
    content: "";
    position: absolute;
    left: -20px;
    bottom: -20px;
    width: calc(100% + 20px);
    height: 2px;
    background: var(--black);
  }
  
  .level-2-wrapper li,
  .level-21-wrapper li,
  .level-23-wrapper li,
  .level-25-wrapper li {
    position: relative;
  }

  .level-2-wrapper > li::before,
  .level-21-wrapper > li::before,
  .level-23-wrapper > li::before,
  .level-25-wrapper > li::before  {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: var(--black);
  }



  .level-2-wrapper > :nth-child(4)::before {
  /* .level-23-wrapper > :nth-child(2)::before { */
    display: none;
  }
  .level-2,
  .level-5,
  .level-21,
  .level-22 {
    width: 80%;
    margin: 0 auto 40px;
    /* background: var(--level-2); */
  }
  
  .level-21,
  .level-22 {
    width: 100%;
    margin: 0 auto 40px;
  }
  .level-2::before,
  .level-22::before,
  .level-32end-wrapper > :first-child > div > ol > :first-child> button::after,
  .level-32end-wrapper > :last-child > div > ol > :first-child> button::after,
  .level-5::before {
    content: "";
    position: absolute;
    top: 102%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 22px;
    background: var(--black);
  }

  .level-32end-wrapper > :first-child > div > ol > :first-child> button::after {
    height: 138px;
  }
  .level-32end-wrapper > :last-child > div > ol > :first-child> button::after {
    height: 163px;
  }
  .level-22::before{
    height: 58px;
  }

  .level-25-wrapper > :first-child > button::before {
    height: 353px;
  }
 
  .level-2::after,
  .level-21::after,
  .level-25::after,
  .level-25-wrapper > :nth-child(6) > :first-child::after {
    display: none;
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 2px;
    background: var(--black);
  }
 
  .central-line,
  .central-line2 {
    content: "";
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--black);
   }

   .central-line2 {
    left: 50%;
    height: 80%;
   }
  /* LEVEL-3 STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .wrapper-li-padding > li {
    padding-left: 10px;
    padding-right: 10px;
  }

  .level-3-wrapper,
  .level-321-wrapper,
  .level-35-wrapper,
  .one-wrapper,
  .section-wrapper, 
  .section-right-wrapper,
  .section-right-wrapper-only {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 1%;
    width: 100%;
    margin: 0 auto;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
  }

  .section-wrapper,
  .section-right-wrapper {
    grid-template-columns: 45% 8% 45%;
    /* column-gap: 1%; */
  }

  .section-right-wrapper-only {
    grid-template-columns: 21% 10% 67%;
  }

  .level-3-wrapper {
    grid-column-gap: 1.5%;
  }

  .level-35-wrapper{
    grid-template-columns: 18% 17% 21% 19% 21%;
    height: 100%;
  }

  .level-321-wrapper{
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    column-gap: 1%;
    /* height: 100%; */
    /* padding-top: 3%; */
  }

  .one-wrapper{
    grid-template-columns: 30% 25% ;
    grid-column-gap: 5%;
  }

  .level-33-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 44% 55%;
    grid-column-gap: 1%;
    width: 100%;
    margin: 0 auto;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
  }
    
    .sub-level-3-wrapper {
      position: relative;
      display: grid;
      grid-template-columns: 47% 0% 47%;
      grid-column-gap: 3%;
      width: 100%;
      margin: 0 auto;
      margin: 0px 0px 0px 0px;
      padding: 0px 0px 0px 0px;
  }

  .level-3financiera-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 27% 44% 27%;
    grid-column-gap: 1%;
    width: 100%;
    margin: 0 auto;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
  }

  .level-34-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-column-gap: 2%;
    width: 100%;
    /* height: 100%; */
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
  }

  .level-32-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 20px;
    width: 100%;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
  }

  .level-32end-wrapper {
    position: relative;
    display: grid;
    /* grid-template-columns: 32% 67%; */
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1%;
    /* width: 950px; */
    width: 100%;
    margin: 0 auto;
    margin: 0px 0px 0px 0px;
    padding: 0px 200px 0px 10px;
    top: 13px;
    max-width: 1025px;
    min-width: 1023px;
    max-height: 885px;
    min-height: 690px;
  }

  .level-310-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-column-gap: 5px;
    width: 100%;
    margin: 0 auto;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
  }
  .sublevel{
    position: relative;
    width: 50%;
    padding: 0% 5% 0% 5%;
    margin-bottom: 50px;
    left: 50%;
  }

  .sub-level-3-wrapper::before,
  .level-321-wrapper::before,
  .section-horizontal::before{
    content: "";
    position: absolute;
    top: -21px;
    left: calc(7% + 14px);
    width: calc(84% + 5px);
    height: 2px;
    background: var(--black);
  }

  .sub-level-3-wrapper::before {
    left: calc(14% + 20px);
    width: calc(53% + 2px);
  }

  .section-horizontal::before{
    left: 129px;
    width: 76px;
    top: 125px;
  }

  .level-310-wrapper::before{
    content: "";
    position: absolute;
    top: -20px;
    left: calc(22% + 1px);
    width: calc(49% + 3.5px);
    height: 2px;
    background: var(--black);
  }

  .level-3-wrapper::before,
  .level-35-wrapper::before,
  .one-wrapper::before,
  .horizontal-line,
  .section-wrapper::before,
  .section-right-wrapper::before,
  .section-right-wrapper-only::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(48% + 1px);
    width: calc(15% + 3px);
    height: 2px;
    background: var(--black);
  }

  .section-wrapper::before {
    left: calc(22% + 1px);
    width: calc(55% + 0px);
  }

  .section-right-wrapper::before {
    left: 50%;
    width: 28%;
  }

  .level-3-wrapper::before{
    top: -20px;
    left: 16%;
    width: 68%
  }

  .level-35-wrapper::before{
    top: -20px;
    left: 9%;
    width: 80.5%;
  }

  .horizontal-line{
    left: 50%;
    width: 25%;
    position: relative;
  }

  .dashed-line {
  width: 100%;
  border-bottom: 3px;
  border-bottom-style: dashed;
  border-bottom-color: var(--black);
  position: relative;
  top: 50%;
  }
   
  .one-wrapper::before{
    width: 35%;
    left: 15%;
  }
  
  .level-3financiera-wrapper::before{
    content: "";
    position: absolute;
    top: -21px;
    left: 13.3%;
    width: 73.4%;
    height: 2px;
    background: var(--black);
  }

  .level-32-wrapper::before{
    content: "";
    position: absolute;
    top: -20px;
    left: 23%;
    width: 54%;
    height: 2px;
    background: var(--black);
  }
  
  .level-34-wrapper::before{
    content: "";
    position: absolute;
    top: -21px;
    left: 11.5%;
    width: 77%;
    height: 2px;
    background: var(--black);
  }

  .level-32end-wrapper::before{
    content: "";
    position: absolute;
    top: -21px;
    left: 16.45%;
    width: 40.35%;
    height: 2px;
    background: var(--black);
  }

  .level-3-wrapper > li::before,
  .level-35-wrapper > li::before,
  .sub-level-3-wrapper > li::before,
  .level-34-wrapper > li::before,
  .level-32-wrapper > li::before,
  .level-321-wrapper > li::before,
  .level-3financiera-wrapper > li::before,
  .section-wrapper > li::before,
  .level-3financiera-wrapper > :last-child > :nth-child(2) > :nth-child(2)::before,
  .section-right-wrapper > li:not(:first-child, :nth-child(2))::before,
  .section-right-wrapper-only > li:not(:first-child, :nth-child(2))::before,
  .level-3financiera-wrapper > :first-child > :nth-child(2) > :nth-child(2)::before,
  .level-32end-wrapper > li::before,
  .level-310-wrapper > li::before,
  .one-wrapper> li::before,
  .sublevel::before {
    content: "";
    position: absolute;
    top: 0;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
  }

  .level-3financiera-wrapper > :nth-child(2) > :last-child > :nth-child(2)::before {
    display: none;
  }
  /* .level-32end-wrapper > :first-child > div > ol,
  .level-32end-wrapper > :last-child > div > ol {
    padding-left: 0;
    display: grid;
    grid-template-rows: 20% 16% 64%;
  } */

  .level-32end-wrapper > :last-child > div > ol > :nth-child(2) {
    padding-left: 27%;
    padding-right: 7%;
    padding-top: 30px;
  }

  .level-32end-wrapper > :last-child > div > ol > :nth-child(2) > :first-child {
    width: 105%;
    left: -29.9%;
  }
  
  .level-32end-wrapper > :last-child > div > ol > :first-child {
    padding-left: 35%;
    padding-right: 22%;
    padding-bottom: 50px;
  }

  .level-32end-wrapper > :first-child > div > ol > :first-child {
    padding-left: 22%;
    padding-right: 22%;
    padding-bottom: 50px;
  }
 
  .level-32end-wrapper > :first-child > div > ol > :nth-child(2) > :nth-child(2) {
    margin-bottom: 70px;
  }

  .level-33-wrapper > li::before{
    content: "";
    position: absolute;
    top: 0;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 40px;
    background: var(--black);
  }
  .level-321-wrapper > li::before{
    top: 20px;
    height: 40px;
  }
    
  /* LEVEL-4 STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .level-4 {
    font-weight: normal;
    height: 100%;
  }
  
  .level-4-wrapper,
  .level-42-wrapper
  /* .level-3financiera-wrapper > :first-child > ol,
  .level-3financiera-wrapper > :first-child > ol > :last-child > ol, */
  /* .level-25-wrapper > :nth-child(5) > :last-child > :nth-child(2) > :last-child { */
    {
    display: grid;
    grid-template-rows: 90px 65px 65px;
    row-gap: 10%;
    /* height: 85%; */
    padding-top: 25px;
    padding-right: 0px;
    position: relative;
    width: 100%;
    padding-left: 15px;
  }
  .level-42-wrapper {
    grid-template-rows: 65px 65px;
  }
/* 
  .level-3financiera-wrapper > :first-child > ol {
    grid-template-rows: 20% 28% 30%;
    row-gap: 11%;
  } */

  /* .level-3financiera-wrapper > :first-child > ol > :last-child > ol {
    grid-template-rows: 100%;
    padding-top: 0%;
    height: 100%;
  } */

  /* .level-25-wrapper > :nth-child(5) > :last-child > :nth-child(2) > :last-child,
  .level-25-wrapper > :nth-child(5) > :last-child > :last-child > :last-child {
    grid-template-rows: 47% 46%;
    row-gap: 5%;
    height: 71%;
    padding-top: 15px;
  } */

  /* .level-25-wrapper > :nth-child(5) > :last-child > :last-child > :last-child {
    height: 80%;
  } */

  .level-32end-wrapper > :last-child > div > ol > :last-child > ol > :first-child > ol {
    grid-template-rows: 40% 27% 23%;
    row-gap: 5%;
  }

  /* .level-32end-wrapper > :first-child > div > ol > :nth-child(3) > ol > :nth-child(3) > :last-child,
  .level-32end-wrapper > :last-child > div > ol > :last-child > ol > :last-child > ol > :first-child > ol,
  .level-32end-wrapper > :last-child > div > ol > :last-child > ol > :last-child > ol > :nth-child(4) > ol {
    grid-template-rows: 33% 33%;
    row-gap: 9%;
    padding-top: 20px;
    padding-bottom: 60px;
  } */

  .level-4::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 12px;
    height: 2px;
    background: var(--black);
  }
  
  .level-4-wrapper::before,
  .level-42-wrapper::before {
    content: "";
    position: absolute;
    /* top: -3px; */
    left: 3px;
    width: 2px;
    height: calc(90% + 37px);
    background: var(--black);
  }

  .level-42-wrapper::before {
    height: calc(75% + 20px);
  }

  /* level 4 before styles
  ------------------------------------------------------------------------ */
  /* .level-3financiera-wrapper > :first-child > :last-child::before {
    top: 0px;
    height: calc(44% + 14px);
  } */

  /* .level-3financiera-wrapper > :first-child > ol > :last-child > ol::before {
    top: -37%;
    height: 88%;
    left: 4px;
  } */

  /* .level-3financiera-wrapper > :last-child > :last-child::before {
    top: 0%;
    height: 325px;
  } */
 
  /* .level-25-wrapper > :nth-child(5) > :last-child > :nth-child(2) > :last-child::before,
  .level-25-wrapper > :nth-child(5) > :last-child > :last-child > :last-child::before {
    top: 0%;
    height: 77.5%;

  } */

  .level-32end-wrapper > :last-child > div > ol > :last-child > ol > :first-child > ol::before {
    top: 0%;
    height: 89.4%;
  }
  /* .level-32end-wrapper > :first-child > div > ol > :nth-child(3) > ol > :nth-child(3) > :last-child::before,
  .level-32end-wrapper > :last-child > div > ol > :last-child > ol > :last-child > ol > :first-child > ol::before,
  .level-32end-wrapper > :last-child > div > ol > :last-child > ol > :last-child > ol > :nth-child(4) > ol::before {
    top: 0%;
    height: 51.2%;
  } */
  .level-32end-wrapper > :last-child > div > ol > :last-child > ol > :last-child > ol > :nth-child(3) > ol::before ,
  .level-32end-wrapper > :last-child > div > ol > :last-child > ol > :last-child > ol > :last-child > ol::before {
    top: 0%;
    height: 277px;
  }